﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace 测试窗体
{
    public class mytreeNode:TreeNode
    {


        string myText = "";

        public string MyText
        {
            get
            {
                return myText;
            }
            set
            {
                this.myText = value;
                this.UpdateText();
            }
        }

        public void UpdateText()
        {
            if (this.Checked)
            {
                this.Text = "✔" + this.myText;
            }
            else
            {
                this.Text = "  " + this.myText;
            }
        }
    }
}
